package com.linjj.seckill.mapper;

import com.linjj.seckill.domain.Order;
import com.linjj.seckill.domain.SeckillOrder;
import com.linjj.seckill.vo.OrderDetailVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface OrderMapper {
    public List<OrderDetailVo> queryOrderDetailVoByUserId(@Param("userId") long userID);
    public OrderDetailVo queryOrderDetailVoByOrderId(@Param("orderId") long orderId);
    public int insertOrder(Order order);
    public int insertSeckillOrder(SeckillOrder seckillOrder);
    public SeckillOrder querySeckillOrderByUserIdAndGoodsId(@Param("userId") long userId,@Param("goodsId")long goodsId);
}
